<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="header.jsp" />

<div style="text-align: center; margin-top: 50px;">
    <h2 style="color: var(--dark-color);">${username},欢迎来到梦幻商城</h2>
    <p style="margin-top: 20px; color: var(--dark-color);">我们提供最优质的商品和服务</p>

    <div style="margin-top: 40px;">
        <a href="${pageContext.request.contextPath}/login.jsp" class="btn" style="margin-right: 20px;">登录</a>
        <a href="${pageContext.request.contextPath}/register.jsp" class="btn">注册</a>
    </div>
</div>
   <%
       if (session.getAttribute("username")==null) {

   %>
        <jsp:forward page="login.jsp"/>
   <%
       }
   %>

<jsp:include page="footer.jsp" />